Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package unifi: Implement Device.String(). #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

octo
Copy link

@octo octo commented Oct 15, 2018

Behaves like the Unifi UI, i.e. returns the device's name if set and the serial otherwise. If the serial has exactly 12 characters, it is formatted like a MAC address, again like the UI does.

@octo octo force-pushed the device-string branch 3 times, most recently from 255e23e to 6795ce6 Compare October 15, 2018 07:46
Previously, tests failed with:

$ go get github.com/golang/lint/golint
package github.com/golang/lint/golint: code in directory /home/travis/gopath/src/github.com/golang/lint/golint expects import "golang.org/x/lint/golint"
Behaves like the Unifi UI, i.e. returns the device's name if set and the
serial otherwise. If the serial has exactly 12 characters, it is
formatted like a MAC address, again like the UI does.
@octo
Copy link
Author

octo commented Oct 15, 2018

Hi, I've left the Travis fix in here for convenience. If you'd like this to be a separate PR, let me know. I've also ordered the commits for easy cherry-picking if that's helpful.

Best regards,
—octo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant